package org.jsola.hr.provider.impl;

import org.jsola.hr.provider.IMonthSalaryProviderService;
import org.jsola.salary.service.IMonthlySalaryService;
import org.jsola.salary.vo.MonthlySalarySummaryVO;
import org.jsola.user.core.TokenUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("IHrMonthSalaryProviderServiceImpl")
public class IMonthSalaryProviderServiceImpl implements IMonthSalaryProviderService {

    @Autowired
    IMonthlySalaryService monthlySalaryService;

    @Override
    public MonthlySalarySummaryVO selectMonthlySalarySummary(String companyId, Integer yearly, Integer monthly,
                                                             TokenUser tokenUser) {
        return monthlySalaryService.selectMonthlySalarySummary(companyId, yearly, monthly, tokenUser);
    }

    @Override
    public List<MonthlySalarySummaryVO> selectMonthlySalarySummaryByCompanyIdList(List<String> companyIdList, Integer yearly, Integer monthly,
                                                                            TokenUser tokenUser) {
        return monthlySalaryService.selectMonthlySalarySummaryByCompanyIds(companyIdList, yearly, monthly, tokenUser);
    }
}
